import { makeAutoObservable, observable, action, computed } from "mobx";
class store {
  constructor() {
    makeAutoObservable(this);
  }
  @observable count = 0;
  @observable info = {
    name: "luyi",
  };
  @action.bound
  add_count() {
    this.count++;
  }
  @computed get count_double() {
    return this.count * 2;
  }
}

export default new store();
